package com.baseweb.webadmin.core.model.bvo;

import com.baseweb.webadmin.core.model.pojo.ByChannel;
import com.baseweb.webadmin.core.model.pojo.Role;

public class WorkTypeTreeBvo {
    private Integer id;

    private String roleName;

    private Integer parentId;
//
    private boolean checked;

    private boolean nocheck;

    //
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }
    public static WorkTypeTreeBvo copyFromWorkType(ByChannel byChannel) {
        WorkTypeTreeBvo bvo = new WorkTypeTreeBvo();
        bvo.setId(byChannel.getId());
        bvo.setParentId(byChannel.getParentId());
        bvo.setRoleName(byChannel.getName());
        return bvo;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public boolean isNocheck() {
        return nocheck;
    }

    public void setNocheck(boolean nocheck) {
        this.nocheck = nocheck;
    }
}
